package com.ruoyi.kong.service;

import com.ruoyi.kong.entity.KongConsumer;
import com.ruoyi.kong.entity.KongEntity;
import com.ruoyi.kong.entity.KongPlugin;
import feign.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

public interface IKongConsumerService {
    KongEntity<KongConsumer> consumers();
    KongConsumer consumerById(String id);
    KongConsumer addConsumer(KongConsumer consumer);
    void deleteConsumer(String id);
    KongConsumer updateConsumer(String id,KongConsumer consumer);
    KongEntity<KongPlugin> consumerPlugins(String id);

    KongEntity<Map> consumerCredentialByName(String id, String name);

    KongEntity<Map> addConsumerCredential(String id,String name,Map entity);

    void deleteConsumerCredential(String id,String name,String entityId);
}
